<?php

class CatalogueItem extends Object {
    protected $name = 'Товар'; 
    protected $names = 'Товары';
    
    protected $db_table_name = 'catalogue_items';
    protected $db_field_prefix = 'ci_';
    
    protected $fields = array(
       'title'=>array('name'=>'Название', 'type'=>'string', 'editing'=>TRUE, 'not_null'=>TRUE),
       'parent_ids'=>array('type'=>'string', 'editing'=>FALSE, 'not_null'=>TRUE),
       'order'=>array('type'=>'string', 'editing'=>FALSE)
    ); 
}

class CatalogueItemSet extends Set {
    protected $class_name = 'CatalogueItem';
}

?>
